package com.lyz.subject.application.convert;

import com.lyz.subject.application.dto.SubjectAnswerDto;
import com.lyz.subject.application.dto.SubjectInfoDto;
import com.lyz.subject.domain.entity.SubjectAnswerBo;
import com.lyz.subject.domain.entity.SubjectInfoBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectAnswerDtoConverter {

    SubjectAnswerDtoConverter INSTANCE = Mappers.getMapper(SubjectAnswerDtoConverter.class);

    SubjectAnswerBo convertDtoToBo(SubjectAnswerDto subjectAnswerDto);

    List<SubjectAnswerBo> convertListDtoToBo(List<SubjectAnswerDto> dtoList);

}
